//
//  ViewController.m
//  Erc_UI02_UIView
//
//  Created by aaaaaa on 16/6/6.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"
#import "CustomerUIView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self createCustomerUIView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (void)createCustomerUIView{
    CustomerUIView *userNameView = [[CustomerUIView alloc] initWithFrame:CGRectMake(40, 100, 300, 50)];
    userNameView.leftLable.text = @"用户名";
    userNameView.rightTextField.placeholder = @"请输入用户名";
    [userNameView.rightTextField becomeFirstResponder];
//    userNameView.backgroundColor = [UIColor yellowColor];
    [self.view addSubview:userNameView];
    [userNameView release];
}





@end
